//
//  UIBarButtonItem+lvfjHelper.m
//  lvfj
//
//  Created by lvfeijun on 2019/12/24.
//  Copyright © 2019 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#import "UIBarButtonItem+lvfjHelper.h"


@implementation UIBarButtonItem (lvfjHelper)

//真实图片
+(instancetype)BarButtonItemWithimageString:(NSString *)imageString tyle:(UIBarButtonItemStyle)style target:(nullable id)target action:(nullable SEL)action{
    return [UIBarButtonItem BarButtonItemWithImage:[UIImage imageNamed:imageString] style:style target:target action:action];
}

+(instancetype)BarButtonItemWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style target:(nullable id)target action:(nullable SEL)action{
    return [[UIBarButtonItem alloc] initWithImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:style target:target action:action];
}

@end
